package com.usian.jyzx.model.entity.product;

import com.usian.jyzx.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2024 07 08 14 17
 **/
@Data
public class Product extends BaseEntity implements Serializable {


    @Schema(description = "商品名称")
    private String name;					// 商品名称

    @Schema(description = "品牌id")
    private Long brandId;					// 品牌ID

    @Schema(description = "一级分类id")
    private Long category1Id;				// 一级分类id

    @Schema(description = "二级分类id")
    private Long category2Id;				// 二级分类id

    @Schema(description = "三级分类id")
    private Long category3Id;				// 三级分类id

    @Schema(description = "计量单位")
    private String unitName;				// 计量单位

    @Schema(description = "轮播图url")
    private String sliderUrls;				// 轮播图

    @Schema(description = "商品规格值json串")
    private String specValue;				// 商品规格值json串

    @Schema(description = "线上状态：0-初始值，1-上架，-1-自主下架")
    private Integer status;					// 线上状态：0-初始值，1-上架，-1-自主下架

    @Schema(description = "审核状态")
    private Integer auditStatus;			// 审核状态

    @Schema(description = "审核信息")
    private String auditMessage;			// 审核信息

   String brandName;

   String category1Name;
   String category2Name;
   String category3Name;
}
